python groupby 1d array

31

n = np.unique(a[:,0])
np.array( [ list(a[a[:,0]==i,1]) for i in n] )

Comments

Submit
0 Comments